home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / DVIEW030.LZH / GLOBALS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-09  |  1.3 KB  |  44 lines

  1. #include "doom.h"
  2.  
  3. /* Each array is dynamically allocated based on info in the WAD file. */
  4.       seg             *Seg_Array;
  5.       side            *Side_Array;
  6.       line            *Line_Array;
  7.       node            *Node_Array;
  8.       node           **PNode_Array;
  9.       sector          *Sector_Array;
  10.       vertex          *Vertex_Array;
  11.       ssector         *SSector_Array;
  12.       blockmap        *Blockmap_Array;
  13.       blockmap_header *Blockmap_Header;
  14.  
  15. /* A temp variable - probably a better way of doing this. */
  16.       wall     Wall;
  17.  
  18. /* Player's X,Y,Z location and Height over floor. */
  19.       short Px, Py, Pz, Ph;
  20. /* The angle the player is facing. */
  21.       unsigned short Pangle;
  22. /* The angle made by the left side of the player's view cone. */
  23.       unsigned short LeftAngle;
  24.  
  25. /* The sine & cosine of the angle the player is facing. */
  26.       long CosPangle, SinPangle;
  27.  
  28. /* The node number of the Root Node in the BSP. */
  29.       short MaxNode;
  30. /* The height of the floor and ceiling currently being drawn. */
  31.       short floor_ht, ceiling_ht;
  32.  
  33. /* The ssector the player is in.
  34.  * Used to stop from walking through walls.
  35.  */
  36.  
  37. short player_ssector;
  38.  
  39. /* The last height the player was on.
  40.  * Used to stop movements between separate levels.
  41.  */
  42.  
  43. short last_height;
  44.